<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/core/common/taglibs.jsp" %>
<%@ include file="/WEB-INF/core/common/top.jsp" %>
<script src="${ctx}/core/scripts/dhtmlXCommon.js" type="text/javascript" charset="UTF-8"></script>
<script src="${ctx}/core/scripts/dhtmlXTree.js" type="text/javascript" charset="UTF-8"></script>
<script language="javascript">
<!--
	function initChannelTree(){
		
	  	tree=new dhtmlXTreeObject(document.getElementById('channelTree'),"98%","100%",0);
	  	tree.setImagePath("${ctx}/core/images/");
	  	tree.enableCheckBoxes(false);
		tree.enableDragAndDrop(false);
		//tree.enableTreeLines(false);
		tree.setOnClickHandler(
			function(nodeId){
				//window.result.document.searchForm['q_channelCode'].value=nodeId;
				//window.result.document.searchForm.submit();
				document.getElementById("result").src="epgManage.action?q_channelCode="+nodeId;
			}
		);
		tree.loadXML("epgManage.action?act=loadXmlTree");//load root level from xml
	  } 	     
//-->
</script>
<body style="overflow-x:hidden;overflow-y:auto;">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<%@include file="/WEB-INF/core/common/message.jsp"  %>
  <tr><td><table border="0" align="center" cellpadding="0" cellspacing="0">
    <td width="8" height="27"><img src="${ctx}/core/images/button_05.gif" width="8" height="27" /></td>
    <td width="99%" align="left" background="${ctx}/core/images/button_06.gif" class="bluecu">&nbsp;<img src="${ctx}/core/images/icon_04.gif" />&nbsp;<s:text name="epg.manage"/></td>
    <td width="8"><img src="${ctx}/core/images/button_07.gif" width="8" height="27" /></td>
    </table>
    </td>
  </tr>
  <tr>
    <td colspan="3" class="biaoge">	

		<table width="100%" height="490" border="0" cellspacing="0">
			<tr>
				
				<td width="15%">
				<table width="100%" height="100%" border="0" cellspacing="0">
					<tr>
						<td rowspan="4" align="left" bgcolor="#FFFFFF">
						<div id="channelTree"
							style="position: relative; width: 100%; height: 100%; text-align: left; overflow: auto;">
						</div>
						<script>
						initChannelTree();
						</script>
						</td>
					</tr>
				</table>
				</td>

				<td valign="top" width="85%">
					<iframe id="result" src="epgManage.action" name="out" frameborder="0" width="100%" height="100%" allowtransparency="true">
				</iframe>
				</td>
			</tr>
		</table>

    </td></tr></table>
</body>